<%@ page import="edu.auctionmart.Auction" %>


<div class="fieldcontain ${hasErrors(bean: auctionInstance, field: 'seller', 'error')} required">
	<label for="seller">
		<g:message code="auction.seller.label" default="Seller" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="seller" name="seller.id" from="${edu.auctionmart.User.list()}" optionKey="id" required="" value="${auctionInstance?.seller?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: auctionInstance, field: 'item', 'error')} required">
	<label for="item">
		<g:message code="auction.item.label" default="Item" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="item" name="item.id" from="${edu.auctionmart.Item.list()}" optionKey="id" required="" value="${auctionInstance?.item?.id}" class="many-to-one"/>
</div>


<div class="fieldcontain ${hasErrors(bean: auctionInstance, field: 'auctionTitle', 'error')} ">
	<label for="auctionTitle">
		<g:message code="auction.auctionTitle.label" default="Auction Title" />
		
	</label>
	<g:textField name="auctionTitle" value="${auctionInstance?.auctionTitle}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: auctionInstance, field: 'startTime', 'error')} required">
	<label for="startTime">
		<g:message code="auction.startTime.label" default="Start Time" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="startTime" value="${auctionInstance.startTime}"/>	
</div>

<div class="fieldcontain ${hasErrors(bean: auctionInstance, field: 'endTime', 'error')} required">
	<label for="endTime">
		<g:message code="auction.endTime.label" default="End Time" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="endTime" value="${auctionInstance.endTime}"/>	
</div>

<div class="fieldcontain ${hasErrors(bean: auctionInstance, field: 'startBid', 'error')} required">
	<label for="startBid">
		<g:message code="auction.startBid.label" default="Start Bid" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="startBid" step="0.01" required="" value="${fieldValue(bean: auctionInstance, field: 'startBid')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: auctionInstance, field: 'hiddenMinBid', 'error')} ">
	<label for="hiddenMinBid">
		<g:message code="auction.hiddenMinBid.label" default="Hidden Min Bid" />
		
	</label>
	<g:field type="number" step="0.01" name="hiddenMinBid" value="${fieldValue(bean: auctionInstance, field: 'hiddenMinBid')}"/>
</div>

